package com.woniu.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.account.dto.GymAccountDto;
import com.woniu.account.dto.GymAccountRegisTryDto;
import com.woniu.account.form.GymCodeLoginForm;
import com.woniu.account.form.LoginGymAccountForm;
import com.woniu.account.form.RegistryGymAccountForm;
import com.woniu.account.model.TGymAccount;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
public interface TGymAccountService extends IService<TGymAccount> {

    GymAccountDto findGymAccountById(Integer gymId);

    Boolean gymRegister(RegistryGymAccountForm form) throws Exception;

    void sendRegisterCode(String phone) throws Exception;

    String sendLoginCode(String phone) throws Exception;

    GymAccountRegisTryDto codeLogin(GymCodeLoginForm form) throws Exception;

    GymAccountRegisTryDto login(LoginGymAccountForm form);
}
